home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / stdvcl.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  9.6 KB  |  263 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'StdVCL.pas' rev: 3.00
  6.  
  7. #ifndef StdVCLHPP
  8. #define StdVCLHPP
  9. #include <SysInit.hpp>
  10. #include <System.hpp>
  11.  
  12. //-- user supplied -----------------------------------------------------------
  13. // The following was extracted from OAIDL.H and brought in here to avoid bringing
  14. // in OAIDL.H itself. It was conveniently guarded in the said header, which makes
  15. // it ideal to be plucked out and replicated.
  16. // 
  17. #ifndef __IDispatch_INTERFACE_DEFINED__
  18. #define __IDispatch_INTERFACE_DEFINED__
  19.  
  20. // Forward ref. OLE structures
  21. struct    tagDISPPARAMS;
  22. struct    tagEXCEPINFO;
  23.  
  24. // OAIDL.H would have declared DISPID as a typedef of a LONG but we don
  25. // assume it has been included. Hence, we use a macro
  26. //
  27. #define DISPID LONG
  28.  
  29. /****************************************
  30.  * Generated header for interface: IDispatch
  31.  * at Sat Jul 13 21:56:52 1996
  32.  * using MIDL 3.00.39
  33.  ****************************************/
  34. /* [unique][uuid][object] */ 
  35.  
  36.  
  37. typedef /* [unique] */ IDispatch __RPC_FAR *LPDISPATCH;
  38.  
  39. /* DISPID reserved to indicate an "unknown" name */
  40. /* only reserved for data members (properties); reused as a method dispid below */
  41. #define DISPID_UNKNOWN  ( -1 )
  42.  
  43. /* DISPID reserved for the "value" property */
  44. #define DISPID_VALUE  ( 0 )
  45.  
  46. /* The following DISPID is reserved to indicate the param
  47.  * that is the right-hand-side (or "put" value) of a PropertyPut
  48.  */
  49. #define DISPID_PROPERTYPUT  ( -3 )
  50.  
  51. /* DISPID reserved for the standard "NewEnum" method */
  52. #define DISPID_NEWENUM  ( -4 )
  53.  
  54. /* DISPID reserved for the standard "Evaluate" method */
  55. #define DISPID_EVALUATE ( -5 )
  56.  
  57. #define DISPID_CONSTRUCTOR  ( -6 )
  58.  
  59. #define DISPID_DESTRUCTOR ( -7 )
  60.  
  61. #define DISPID_COLLECT  ( -8 )
  62.  
  63. /* The range -500 through -999 is reserved for Controls */
  64. /* The range 0x80010000 through 0x8001FFFF is reserved for Controls */
  65. /* The range -5000 through -5499 is reserved for ActiveX Accessability */
  66. /* The remainder of the negative DISPIDs are reserved for future use */
  67.  
  68. EXTERN_C const IID IID_IDispatch;
  69.  
  70.     
  71.     interface IDispatch : public IUnknown
  72.     {
  73.     public:
  74.         virtual HRESULT STDMETHODCALLTYPE GetTypeInfoCount( 
  75.             /* [out] */ UINT __RPC_FAR *pctinfo) = 0;
  76.         
  77.         virtual HRESULT STDMETHODCALLTYPE GetTypeInfo( 
  78.             /* [in] */ UINT iTInfo,
  79.             /* [in] */ LCID lcid,
  80.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo) = 0;
  81.         
  82.         virtual HRESULT STDMETHODCALLTYPE GetIDsOfNames( 
  83.             /* [in] */ REFIID riid,
  84.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  85.             /* [in] */ UINT cNames,
  86.             /* [in] */ LCID lcid,
  87.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId) = 0;
  88.         
  89.         virtual /* [local] */ HRESULT STDMETHODCALLTYPE Invoke( 
  90.             /* [in] */ DISPID dispIdMember,
  91.             /* [in] */ REFIID riid,
  92.             /* [in] */ LCID lcid,
  93.             /* [in] */ WORD wFlags,
  94.             /* [out][in] */ tagDISPPARAMS __RPC_FAR *pDispParams,
  95.             /* [out] */ tagVARIANT __RPC_FAR *pVarResult,
  96.             /* [out] */ tagEXCEPINFO __RPC_FAR *pExcepInfo,
  97.             /* [out] */ UINT __RPC_FAR *puArgErr) = 0;
  98.     };
  99.     
  100.  
  101. HRESULT STDMETHODCALLTYPE IDispatch_GetTypeInfoCount_Proxy( 
  102.     IDispatch __RPC_FAR * This,
  103.     /* [out] */ UINT __RPC_FAR *pctinfo);
  104.  
  105. void __RPC_STUB IDispatch_GetTypeInfoCount_Stub(
  106.     IRpcStubBuffer *This,
  107.     IRpcChannelBuffer *_pRpcChannelBuffer,
  108.     PRPC_MESSAGE _pRpcMessage,
  109.     DWORD *_pdwStubPhase);
  110.  
  111. HRESULT STDMETHODCALLTYPE IDispatch_GetTypeInfo_Proxy( 
  112.     IDispatch __RPC_FAR * This,
  113.     /* [in] */ UINT iTInfo,
  114.     /* [in] */ LCID lcid,
  115.     /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  116.  
  117. void __RPC_STUB IDispatch_GetTypeInfo_Stub(
  118.     IRpcStubBuffer *This,
  119.     IRpcChannelBuffer *_pRpcChannelBuffer,
  120.     PRPC_MESSAGE _pRpcMessage,
  121.     DWORD *_pdwStubPhase);
  122.  
  123. HRESULT STDMETHODCALLTYPE IDispatch_GetIDsOfNames_Proxy( 
  124.     IDispatch __RPC_FAR * This,
  125.     /* [in] */ REFIID riid,
  126.     /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  127.     /* [in] */ UINT cNames,
  128.     /* [in] */ LCID lcid,
  129.     /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  130.  
  131. void __RPC_STUB IDispatch_GetIDsOfNames_Stub(
  132.     IRpcStubBuffer *This,
  133.     IRpcChannelBuffer *_pRpcChannelBuffer,
  134.     PRPC_MESSAGE _pRpcMessage,
  135.     DWORD *_pdwStubPhase);
  136.  
  137. /* [call_as] */ HRESULT STDMETHODCALLTYPE IDispatch_RemoteInvoke_Proxy( 
  138.     IDispatch __RPC_FAR * This,
  139.     /* [in] */ DISPID dispIdMember,
  140.     /* [in] */ REFIID riid,
  141.     /* [in] */ LCID lcid,
  142.     /* [in] */ DWORD dwFlags,
  143.     /* [in] */ tagDISPPARAMS __RPC_FAR *pDispParams,
  144.     /* [out] */ tagVARIANT __RPC_FAR *pVarResult,
  145.     /* [out] */ tagEXCEPINFO __RPC_FAR *pExcepInfo,
  146.     /* [out] */ UINT __RPC_FAR *pArgErr,
  147.     /* [in] */ UINT cVarRef,
  148.     /* [size_is][in] */ UINT __RPC_FAR *rgVarRefIdx,
  149.     /* [size_is][out][in] */ tagVARIANT __RPC_FAR *rgVarRef);
  150.  
  151.  
  152. void __RPC_STUB IDispatch_RemoteInvoke_Stub(
  153.     IRpcStubBuffer *This,
  154.     IRpcChannelBuffer *_pRpcChannelBuffer,
  155.     PRPC_MESSAGE _pRpcMessage,
  156.     DWORD *_pdwStubPhase);
  157.  
  158. // Remove DISPID macro defined if OAIDL was not included
  159. //
  160. #if defined(DISPID)
  161. #undef DISPID
  162. #endif
  163.  
  164. #endif  /* __IDispatch_INTERFACE_DEFINED__ */
  165.  
  166.  
  167. namespace Stdvcl
  168. {
  169. //-- type declarations -------------------------------------------------------
  170. __interface IProvider;
  171. typedef System::DelphiInterface<IProvider> _di_IProvider;
  172. __interface IProvider : public IDispatch /* __guid="{6E644935-51F7-11D0-8D41-00A0248E4B9A}" */
  173. {
  174.     
  175. public:
  176.     virtual HRESULT __safecall Get_Data(System::OleVariant &Get_Data_result) = 0;
  177.     virtual HRESULT __safecall ApplyUpdates(const System::OleVariant Delta, int MaxErrors, /* out */ int 
  178.         &ErrorCount, System::OleVariant &ApplyUpdates_result) = 0;
  179.     virtual HRESULT __safecall GetMetaData(System::OleVariant &GetMetaData_result) = 0;
  180.     virtual HRESULT __safecall GetRecords(int Count, /* out */ int &RecsOut, System::OleVariant &GetRecords_result
  181.         ) = 0;
  182.     virtual HRESULT __safecall DataRequest(const System::OleVariant Input, System::OleVariant &DataRequest_result
  183.         ) = 0;
  184.     virtual HRESULT __safecall Get_Constraints(Word &Get_Constraints_result) = 0;
  185.     virtual HRESULT __safecall Set_Constraints(Word Value) = 0;
  186.     virtual HRESULT __safecall Reset(Word MetaData) = 0;
  187.     virtual HRESULT __safecall SetParams(const System::OleVariant Values) = 0;
  188.     /* safecall wrapper */ System::OleVariant _scw_Get_Data() { System::OleVariant r; HRESULT hr = Get_Data(
  189.         r); System::CheckSafecallResult(hr); return r; }
  190.     __property System::OleVariant Data = {read=_scw_Get_Data};
  191.     /* safecall wrapper */ Word _scw_Get_Constraints() { Word r; HRESULT hr = Get_Constraints(r); System::CheckSafecallResult(hr); return r; }
  192.         
  193.     __property Word Constraints = {read=_scw_Get_Constraints, write=Set_Constraints};
  194. };
  195.  
  196. __dispinterface IProviderDisp;
  197. typedef System::DelphiInterface<IProviderDisp> _di_IProviderDisp;
  198. __dispinterface IProviderDisp: public IDispatch /* __guid="{6E644935-51F7-11D0-8D41-00A0248E4B9A}" */
  199.     
  200. {
  201.     
  202. };
  203.  
  204. __interface IStrings;
  205. typedef System::DelphiInterface<IStrings> _di_IStrings;
  206. __interface IStrings : public IDispatch /* __guid="{EE05DFE2-5549-11D0-9EA9-0020AF3D82DA}" */
  207. {
  208.     
  209. public:
  210.     virtual HRESULT __safecall Get_ControlDefault(int Index, System::OleVariant &Get_ControlDefault_result
  211.         ) = 0;
  212.     virtual HRESULT __safecall Set_ControlDefault(int Index, const System::OleVariant Value) = 0;
  213.     virtual HRESULT __safecall Count(int &Count_result) = 0;
  214.     virtual HRESULT __safecall Get_Item(int Index, System::OleVariant &Get_Item_result) = 0;
  215.     virtual HRESULT __safecall Set_Item(int Index, const System::OleVariant Value) = 0;
  216.     virtual HRESULT __safecall Remove(int Index) = 0;
  217.     virtual HRESULT __safecall Clear(void) = 0;
  218.     virtual HRESULT __safecall Add(const System::OleVariant Item, int &Add_result) = 0;
  219.     virtual HRESULT __safecall _NewEnum(_di_IUnknown &_NewEnum_result) = 0;
  220.     /* safecall wrapper */ System::OleVariant _scw_Get_ControlDefault(int Index) { System::OleVariant r; HRESULT hr = Get_ControlDefault(
  221.         Index, r); System::CheckSafecallResult(hr); return r; }
  222.     __property System::OleVariant ControlDefault[int Index] = {read=_scw_Get_ControlDefault, write=Set_ControlDefault
  223.         /*, default*/};
  224.     /* safecall wrapper */ System::OleVariant _scw_Get_Item(int Index) { System::OleVariant r; HRESULT hr = Get_Item(
  225.         Index, r); System::CheckSafecallResult(hr); return r; }
  226.     __property System::OleVariant Item[int Index] = {read=_scw_Get_Item, write=Set_Item};
  227. };
  228.  
  229. __dispinterface IStringsDisp;
  230. typedef System::DelphiInterface<IStringsDisp> _di_IStringsDisp;
  231. __dispinterface IStringsDisp: public IDispatch /* __guid="{EE05DFE2-5549-11D0-9EA9-0020AF3D82DA}" */
  232.     
  233. {
  234.     
  235. };
  236.  
  237. __interface IDataBroker;
  238. typedef System::DelphiInterface<IDataBroker> _di_IDataBroker;
  239. __interface IDataBroker : public IDispatch /* __guid="{6539BF65-6FE7-11D0-9E8C-00A02457621F}" */
  240. {
  241.     
  242. public:
  243.     virtual HRESULT __safecall GetProviderNames(System::OleVariant &GetProviderNames_result) = 0;
  244. };
  245.  
  246. __dispinterface IDataBrokerDisp;
  247. typedef System::DelphiInterface<IDataBrokerDisp> _di_IDataBrokerDisp;
  248. __dispinterface IDataBrokerDisp: public IDispatch /* __guid="{6539BF65-6FE7-11D0-9E8C-00A02457621F}" */
  249.     
  250. {
  251.     
  252. };
  253.  
  254. //-- var, const, procedure ---------------------------------------------------
  255. extern PACKAGE GUID LIBID_StdVCL;
  256.  
  257. }    /* namespace Stdvcl */
  258. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  259. using namespace Stdvcl;
  260. #endif
  261. //-- end unit ----------------------------------------------------------------
  262. #endif    // StdVCL
  263.